package com.kitty.game.gm.handler100;

import com.kitty.common.utils.SpringUtils;
import com.kitty.game.equip.service.EquipService;
import com.kitty.game.role.model.Role;
import com.kitty.game.role.service.RoleService;
import com.kitty.game.team.message.RespMsg;
import com.kitty.mina.message.MessagePusher;
import com.kitty.web.common.AjaxResult;

public class NCWupin implements NCGmFather {
    @Override
    public void handle(Role role, String item) {
        String name = item.split("=")[0];
        int num = Integer.parseInt(item.split("=")[1]);
        SpringUtils.getBean(EquipService.class).addMall(name, true, role, num);
        MessagePusher.pushMessage(role, new RespMsg("发送物品成功！"));
    }
}
